﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wxoauth.aspx.cs" Inherits="MxWeiXinPF.Web.wxoauth" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="../scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
    var is_weixin = (function () { return navigator.userAgent.toLowerCase().indexOf('MicroMessenger') !== -1 })();
    window.onload = function () {
        var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight; //兼容IOS，不需要的可以去掉
        //        var btn = document.getElementById('J_weixin');
        var tip = document.getElementById('weixin-tip');
        var close = document.getElementById('close');
        if (!is_weixin) {
            tip.style.height = winHeight + 'px'; //兼容IOS弹窗整屏
            tip.style.display = 'block';
        }
        close.onclick = function () {
            window.opener = null;
            window.open('', '_self');
            window.close();
        }
    }
</script>
<style type="text/css">
#weixin-tip{position:fixed;left:0;top:0;background:rgba(0,0,0,0.8);filter:alpha(opacity=80);width:100%;height:100%;z-index:100;}
#weixin-tip p{text-align:center;margin-top:10%;padding:0 5%;position:relative;}
#weixin-tip .close{text-align:center;color:#fff;font:bold 20px/24px simsun;text-shadow:0 1px 0 #ddd;}
</style>  
</head>
<body>  
<div id="weixin-tip"><p><span id="close" title="关闭" class="close"><br /><br /><br />请在微信中打开<br />关闭此页面</span></p></div>
</body>
</html>
 